package com.rabbiter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Objects;

/**
 * <p>
 *
 * </p>
 *
 * @author rabbiter
 */
@ApiModel(value="Task对象", description="")
public class Task implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "任务名")
    private String name;

    @ApiModelProperty(value = "任务内容")
    private String content;

    @ApiModelProperty(value = "工作人员")
    private String woker;

    @ApiModelProperty(value = "时间")
    private String time;

    @ApiModelProperty(value = "地点")
    private String place;

    @ApiModelProperty(value = "状态")
    private Integer state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWoker() {
        return woker;
    }

    public void setWoker(String woker) {
        this.woker = woker;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", content='" + content + '\'' +
                ", woker='" + woker + '\'' +
                ", time='" + time + '\'' +
                ", place=" + place + '\'' +
                ", state=" + state + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Task task =(Task) o;
        return Objects.equals(id, task.id) && Objects.equals(name, task.name) && Objects.equals(content, task.content) && Objects.equals(woker, task.name) && Objects.equals(time, task.time) && Objects.equals(place, task.place) && Objects.equals(state, task.state);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, content, woker, time, place, state);
    }
}
